package com.sky.service;

import com.sky.dto.ShoppingCartDTO;
import com.sky.entity.ShoppingCart;

import java.util.List;

/**
 * ClassName: ShoppingCartService
 * Package:
 * Description
 *
 * @Author xw
 * @Create 2023/11/23 20:06
 */
public interface ShoppingCartService {

    /**
     * 添加购物车
     * */
    void add(ShoppingCartDTO shoppingCartDTO);

    /**
     * 查看购物车
     * */
    List<ShoppingCart> showShoppingCart();

    /**
     * 清空购物车
     * */
    void cleanShoppingCart();

    /**
     * 删除购物车中一个商品
     * */
    void deleteNoeShoppingCart(ShoppingCartDTO shoppingCartDTO);
}
